// 文章所有列表请求模块
import request from '@/utils/request'
// 获取所有频道
export const getAllChannels = params => request({
  method: 'GET',
  url: '/v1_0/channels',
  params
})
// 更新我的频道
export const addMyChannel = data => request({
  method: 'PATCH',
  url: '/v1_0/user/channels',
  data
})
// 删除频道
export const deleteMyChannel = channelID => request({
  method: 'DELETE',
  url: `/v1_0/user/channels/${channelID}`
})
